package service

import (
	"context"
	"github.com/go-kratos/kratos/v2/log"
	"kratos-realword/internal/dao"
	"kratos-realword/internal/pojo"
)

type ArticleService struct {
	articleDao dao.ArticleDao
	log        *log.Helper
}

func NewArticleService(articleDao dao.ArticleDao, logger log.Logger) *ArticleService {
	return &ArticleService{articleDao: articleDao, log: log.NewHelper(logger)}
}

func (uc *ArticleService) CreateArticle(ctx context.Context, g *pojo.Article) (*pojo.Article, error) {
	uc.log.WithContext(ctx).Infof("CreateRealWorld: %v")
	return nil, nil
}
